home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 05 - 1989 / 05.04 Apr 89 / Scroller Code / ScrollMgr.h < prev   
Encoding:
C/C++ Source or Header  |  1988-08-26  |  825 b   |  43 lines  |  [TEXT/KAHL]

  1. /*    Header file for scrolling manager
  2.     © 1988 John A. Nairn, All Rights Reserved    */
  3.  
  4. #ifndef    _ControlMgr_
  5. #include <ControlMgr.h>
  6. #endif
  7. #ifndef    _TextEdit_
  8. #include <TextEdit.h>
  9. #endif
  10. #ifndef _MacTypes_
  11. #include <MacTypes.h>
  12. #endif
  13.     
  14. #define SBarWidth 15    /*Standard Constants*/
  15. #define HorizBar 1
  16. #define VertBar 2
  17. #define inPixels 0
  18. #define inLines 1
  19.  
  20. typedef struct {
  21.     ControlHandle hScrollHdl;
  22.     int horizLines;
  23.     int horizLinesVis;
  24.     Rect horizScrollRect;
  25.     Point hRectTopLeft;
  26.     int hScrollMarg;
  27.     ControlHandle vScrollHdl;
  28.     int vertLines;
  29.     int vertLinesVis;
  30.     Rect vertScrollRect;
  31.     Point vRectTopLeft;
  32.     int vScrollMarg;
  33.     TEHandle hTE;
  34.     long refCon;
  35. } ScrollInfo,*ScrollPtr;
  36.  
  37. ScrollPtr SetScrollWindow();
  38. RgnHandle ScrollSectRgn();
  39. Rect *NonScrollRect();
  40. Rect *ScrollSectRect();
  41. long GetSRefCon();
  42. ScrollPtr ActiveScrollPtr();
  43.